﻿using EM.OA.BLL;
using EM.OA.Common;
using EM.OA.DataModel.DBModel;
using EM.OA.WebCommon.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Reflection;
using System.Web;
namespace EM.OA.Portal.Models
{
    public class ProjectModels : BaseViewModel
    {
        /// <summary>
        /// ProjectID
        /// </summary>		
        [Display(Name = "ProjectID")]
        public Guid? ProjectID { get; set; }
        /// <summary>
        /// 项目名称
        /// </summary>		
        [Display(Name = "项目名称")]
        public string ProjectName { get; set; }
        /// <summary>
        /// 项目编号
        /// </summary>		
        [Display(Name = "项目编号")]
        public string ProjectCode { get; set; }
        /// <summary>
        /// 项目描述
        /// </summary>		
        [Display(Name = "项目描述")]
        public string Description { get; set; }
        /// <summary>
        /// 是否尽快开始
        /// </summary>		
        [Display(Name = "是否尽快开始")]
        public bool IsASAPStart { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>		
        [Display(Name = "开始时间")]
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 是否尽快完成
        /// </summary>		
        [Display(Name = "是否尽快完成")]
        public bool IsASAPFinish { get; set; }
        /// <summary>
        /// 完成时间
        /// </summary>		
        [Display(Name = "完成时间")]
        public DateTime? FinishTime { get; set; }
        /// <summary>
        /// 项目级别
        /// </summary>		
        [Display(Name = "项目级别")]
        public string ProjectLevel { get; set; }
        public string ProjectLevelName
        {
            get
            {
                return new DictionaryBLL().GetDicName(GlobalEnum.RootKind.ProjectLevelKind.ToString(), ProjectLevel);
            }
        }
        /// <summary>
        /// 完成百分比
        /// </summary>		
        [Display(Name = "完成百分比")]
        public int? FinishPercent { get; set; }
        /// <summary>
        /// 是否短消息提醒
        /// </summary>		
        [Display(Name = "是否短消息提醒")]
        public bool? IsWebMessage { get; set; }
        /// <summary>
        /// 是否SMS短信提醒
        /// </summary>		
        [Display(Name = "是否SMS短信提醒")]
        public bool? IsSMS { get; set; }
        /// <summary>
        /// 是否邮件提醒
        /// </summary>		
        [Display(Name = "是否邮件提醒")]
        public bool? IsEmail { get; set; }
        /// <summary>
        /// 负责人
        /// </summary>		
        [Display(Name = "负责人")]
        public Guid? ManageUserID { get; set; }
        public string ManageUserIDName
        {
            get
            {
                return new UserBLL().GetUserName(ManageUserID.ToString());
            }
        }
        /// <summary>
        /// 参与人(多）
        /// </summary>		
        [Display(Name = "参与人")]
        public string JoinUserIDs { get; set; }
        public string JoinUserIDsName
        {
            get
            {
                return new UserBLL().GetUserName(JoinUserIDs);
            }
        }

        public List<ProjectChatModels> ProjectChatModels { get; set; }

    }
}